package org.ch00.test00;

/*
 *
 *@author XCH
 *@date 2025 - 02 - 28
 *
 */
public class Dog {
    private String name;
    private String color;
    public void call(){
        System.out.println("狗叫");
    }
    public void eat(){
        System.out.println("吃东西");
    }
    public void run(){
        System.out.println("跑");
    }

    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "旺财";
        dog.color = "黄色";
        dog.call();
        dog.eat();
        dog.run();
    }
}
